# gpio
sudo chmod 777 /dev/gpiochip*

# export pwm
sudo chmod 777 /sys/class/pwm/pwmchip0/export
sudo chmod 777 /sys/class/pwm/pwmchip0/unexport

sudo echo 0 > /sys/class/pwm/pwmchip0/export
sudo chmod 777 /sys/class/pwm/pwmchip0/pwm0/*


sudo chmod 777 /sys/class/pwm/pwmchip4/export
sudo chmod 777 /sys/class/pwm/pwmchip4/unexport

sudo echo 0 > /sys/class/pwm/pwmchip4/export
sudo chmod 777 /sys/class/pwm/pwmchip4/pwm0/*


# i2c
sudo chmod 777 /dev/i2c-1